from django.urls import path, include
from orders import views

urlpatterns = [
    # 创建订单
    path("user/addOrder/", views.CreateOrder.as_view()),
    # 支付成功回调
    path("pay/result/", views.CheckPayResult.as_view()),
    # 获取订单商品
    path("user/getOrder/", views.OrderInfo.as_view()),
    # 去支付
    path("user/payOrder/", views.PayOrder.as_view()),
    # 确认收货
    path("user/confirmReceive/", views.ConfirmReceiveView.as_view()),
    # 删除订单商品
    path("user/deleteOrderProduct/",views.DelOrderProductView.as_view()),
]
